
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'



const app = createApp(App)
// App.config.devtools = false;
app.use(createPinia())
app.use(router)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 导入组件库的所有组件
import ElementPlus from 'element-plus'
// 导入组件库的所有样式
import 'element-plus/dist/index.css'

// 通过插件的方式注册所有组件
app.use(ElementPlus)

app.mount('#app')
